package com.lineng.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.lineng.pojo.Activity;
import com.lineng.pojo.ActivityExample;

public interface ActivityMapper {
	long countByExample(ActivityExample example);

	int deleteByExample(ActivityExample example);

	int deleteByPrimaryKey(Integer id);

	int insert(Activity record);

	int insertSelective(Activity record);

	List<Activity> selectByExample(ActivityExample example);

	Activity selectByPrimaryKey(Integer id);

	int updateByExampleSelective(@Param("record") Activity record, @Param("example") ActivityExample example);

	int updateByExample(@Param("record") Activity record, @Param("example") ActivityExample example);

	int updateByPrimaryKeySelective(Activity record);

	int updateByPrimaryKey(Activity record);

	int updateActivityReader(int reader);

	int deleteById(@Param("IDs") Integer[] id);

	List<Activity> getActivitiesByDate(@Param("startDate") Date startDate, @Param("endDate") Date endDate);
}